@sovpips Ok. I think I begin to catch it. Noe I need you to define what conditions are required to define when the EA need to open sell pending orders only and buy pending orders. I know you said that should happen 'on top' and 'at the botom areas of teh chart. The problem is that we need to specfy the EA when price is in those areas.